//
//  GameDetailInfoCell.swift
//  appstore
//
//  Created by llbt-sk on 2019/11/8.
//  Copyright © 2019 Roy. All rights reserved.
//

import UIKit

class GameDetailInfoCell: UITableViewCell {
    
    var nameLabel:UILabel!
    var contentLabel:UILabel!
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.selectionStyle = .none
        self.initView()
    }
    
    func initView() -> Void {
        
        nameLabel = UILabel()
        nameLabel.textColor = .lightGray
        nameLabel.font = UIFont.systemFont(ofSize: 15.0)
        nameLabel.textAlignment = .left
        self.contentView.addSubview(nameLabel)
        nameLabel.snp.makeConstraints { (make) in
            make.left.equalTo(20.0)
            make.centerY.equalTo(contentView)
            make.height.equalTo(40.0)
        }
        
        contentLabel = UILabel()
        contentLabel.font = UIFont.systemFont(ofSize: 15.0)
        contentLabel.textAlignment = .right
        self.contentView.addSubview(contentLabel)
        contentLabel.snp.makeConstraints { (make) in
            make.left.equalTo(nameLabel.snp.right).offset(0.0)
            make.right.equalTo(-20.0)
            make.centerY.equalTo(contentView)
            make.height.equalTo(40.0)
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
